home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / f90 / char.z / char
Encoding:
Text File  |  2002-10-03  |  2.8 KB  |  65 lines

  1. CHAR(3I)                                              Last changed: 4-13-99
  2.  
  3.  
  4. NNAAMMEE
  5.      CCHHAARR, IICCHHAARR - Converts integer to character and vice versa
  6.  
  7. SSYYNNOOPPSSIISS
  8.      CCHHAARR(([II==]_i,, [KKIINNDD==]_k_i_n_d))
  9.  
  10.      IICCHHAARR(([CC==]_c))
  11.  
  12. IIMMPPLLEEMMEENNTTAATTIIOONN
  13.      UNICOS, UNICOS/mk, IRIX systems
  14.  
  15.      CF90, MIPSpro 7 Fortran 90, MIPSpro Fortran 77
  16.  
  17. SSTTAANNDDAARRDDSS
  18.      Fortran
  19.  
  20. DDEESSCCRRIIPPTTIIOONN
  21.      CCHHAARR and IICCHHAARR are inverse functions.
  22.  
  23.      CCHHAARR converts an integer or Boolean argument to a character specified
  24.      by the ASCII collating sequence.  IICCHHAARR converts a character argument
  25.      to an integer based on the character position in the collating
  26.      sequence.
  27.  
  28.      These intrinsic functions accept the following arguments:
  29.  
  30.      _i         Must be of type integer or Boolean.  If of type integer, _i
  31.                must be in the range 0 <= _i <= 255.
  32.  
  33.      _k_i_n_d      An integer scalar value.  Must be a scalar integer
  34.                initialization expression.  This argument is not accepted by
  35.                the MIPSpro Fortran 77 compiler.
  36.  
  37.      _c         Must be of type character and of length one.
  38.  
  39.      The type conversion routines assign the appropriate type to Boolean
  40.      arguments without shifting or manipulating the bit patterns they
  41.      represent.  For example, CCHHAARR(_i) returns the _ith character in the
  42.      collating sequence.
  43.  
  44.      CCHHAARR and IICCHHAARR are elemental functions.  The names of these intrinsics
  45.      cannot be passed as arguments.
  46.  
  47. RREETTUURRNN VVAALLUUEESS
  48.      For CCHHAARR, the result is a character of length one.  If the _k_i_n_d
  49.      parameter is present, the kind type parameter is that specified by
  50.      _k_i_n_d.  Otherwise the kind type parameter is that of the default
  51.      character type.  The result is the character in position _i of the
  52.      ASCII collating sequence associated with the specified kind type
  53.      parameter.
  54.  
  55.      IICCHHAARR returns type default integer.  For IICCHHAARR, the result is the
  56.      position _c in the collating sequence associated with the kind type
  57.      parameter of _c and is in the range 0 <= IICCHHAARR((_c)) <= 255.  For any
  58.      characters CC and DD capable of being represented, CC ..LLEE.. DD is true if
  59.      and only if IICCHHAARR ((CC)) ..LLEE.. IICCHHAARR((DD)) is true and CC ..EEQQ.. DD is true if
  60.      and only if IICCHHAARR((CC)) ..EEQQ.. IICCHHAARR((DD)) is true.
  61.  
  62. SSEEEE AALLSSOO
  63.      _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
  64.      man page.
  65.